/**
 * Mar 19, 2014 9:08:14 AM
 */
package elitech.vietnam.weatherfashion.dialog;

import elitech.vietnam.weatherfashion.R;
import android.app.ProgressDialog;
import android.content.Context;
import android.os.Bundle;
import android.widget.TextView;

/**
 * @author Cong Vo
 *
 */
public class MyProgressDialog extends ProgressDialog {

	TextView mTextTitle, mTextMess;

	public MyProgressDialog(Context context) {
		super(context, R.style.Dialog);
	}
	
	public MyProgressDialog(Context context, int theme) {
		super(context, R.style.Dialog);
	}
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.progressdialog);
		setCancelable(false);
		
		mTextTitle = (TextView) findViewById(R.id.prg_texttitle);
		mTextMess = (TextView) findViewById(R.id.prg_textmess);
	}
	
	@Override
	public void setTitle(CharSequence title) {
		mTextTitle.setText(title);
	}
	
	@Override
	public void setMessage(CharSequence message) {
		mTextMess.setText(message);
	}
}
